/* 管理页面现代化样式 */

/* 标签页样式 */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e5eb;
}

body.dark-mode .tabs {
    border-bottom-color: #3d566e;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #f1f2f6;
    border: none;
    border-radius: 12px 12px 0 0;
    margin-right: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

body.dark-mode .tab {
    background-color: #34495e;
    color: #ecf0f1;
}

.tab.active {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.tab:hover:not(.active) {
    background-color: #dfe6e9;
}

body.dark-mode .tab:hover:not(.active) {
    background-color: #4a627a;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
    
    /* 移动端卡片式布局 */
    .mobile-card {
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    body.dark-mode .mobile-card {
        background: #34495e;
        border-color: #3d566e;
    }
    
    .mobile-card .card-title {
        font-weight: bold;
        margin-bottom: 10px;
        color: #2c3e50;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
    }
    
    body.dark-mode .mobile-card .card-title {
        color: #ecf0f1;
        border-bottom-color: #3d566e;
    }
    
    .mobile-card .card-content {
        display: flex;
        flex-wrap: wrap;
    }
    
    .mobile-card .card-field {
        flex: 0 0 50%;
        margin-bottom: 8px;
    }
    
    .mobile-card .card-label {
        font-weight: bold;
        color: #7f8c8d;
    }
    
    body.dark-mode .mobile-card .card-label {
        color: #bdc3c7;
    }
}

/* 现代化搜索框 */
.search-group {
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 300px;
}

.search-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: white;
    color: #333;
}

body.dark-mode .search-group input {
    background-color: #475569;
    border-color: #64748b;
    color: #e2e8f0;
}

.search-group input:focus {
    border-color: #9b59b6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.search-group button {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-group button:hover {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.clear-search-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.clear-search-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* 现代化表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

body.dark-mode th, 
body.dark-mode td {
    border-bottom-color: #3d566e;
}

th {
    background: linear-gradient(120deg, #9b59b6, #8e44ad);
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

body.dark-mode th {
    background: linear-gradient(120deg, #8e44ad, #9b59b6);
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

body.dark-mode tr:nth-child(even) {
    background-color: #34495e;
}

tr:hover {
    background-color: #e3f2fd;
}

body.dark-mode tr:hover {
    background-color: #3d566e;
}

/* 现代化按钮 */
.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.edit-btn {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-right: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edit-btn:hover {
    background: linear-gradient(135deg, #d68910, #f39c12);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 现代化分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination button {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination button:hover {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pagination button:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.dark-mode .pagination button:disabled {
    background: linear-gradient(135deg, #566573, #7f8c8d);
}

.pagination input {
    width: 70px;
    padding: 10px;
    border: 2px solid #e1e5eb;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    background-color: white;
    color: #333;
    transition: all 0.3s ease;
}

body.dark-mode .pagination input {
    background-color: #475569;
    border-color: #64748b;
    color: #e2e8f0;
}

.pagination input:focus {
    border-color: #9b59b6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

/* 状态栏 */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    border-radius: 12px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 15px;
}

.system-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(120deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    font-size: 14px;
}

body.dark-mode .system-info {
    background: linear-gradient(120deg, #3d566e, #2c3e50);
}